interface IHeap<T> {
  insert(value: T): void;

  extract(): T | undefined;

  peek(): T | undefined; // 查看堆顶元素

  get length(): number;

  isEmpty(): boolean;

  build_heap(array: T[]): void;
}

export default IHeap;
